package iflyer.service;

import iflyer.dao.UserDao;
import iflyer.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author babylct
 * @Description //TODO
 * @Date 20:38 2018/7/20
 * @Param
 * @return
 **/
@Service
public class UserService {
    @Autowired
    UserDao userDao;

    public User getUser(String name) {
        return userDao.getUser(name);
    }

    public User saveUser(String name, String age) {

        return userDao.saveUser(name, age);
    }
}
